/*
* 数据分析
* */
import http from "../http";
import httpComputed from "../httpComputed";   // 端口号更改的时间分析


//  数据概览
const dataCard = {
    // 概览
    overviewNavigate: (params) => http({ method: 'post', url: '/behavior/overview-group/navigate', data: params }),
    // 概览
    overviewList: (params) => http({ method: 'post', url: '/behavior/overview/list', data: params }),
    overviewAdd: (params) => http({ method: 'post', url: '/behavior/overview/add', data: params }),
    overviewUpdate: (params) => http({ method: 'post', url: '/behavior/overview/update', data: params }),
    overviewDelete: (params) => http({ method: 'post', url: '/behavior/overview/delete', data: params }),
    // 概览分组
    overviewGroupList: (params) => http({ method: 'post', url: '/behavior/overview-group/list', data: params }),
    overviewGroupAdd: (params) => http({ method: 'post', url: '/behavior/overview-group/add', data: params }),
    overviewGroupUpdate: (params) => http({ method: 'post', url: '/behavior/overview-group/update', data: params }),
    overviewGroupDelete: (params) => http({ method: 'post', url: '/behavior/overview-group/delete', data: params }),
    // 概览组件(面板)
    overviewComponentList: (params) => http({ method: 'post', url: '/behavior/overview-component/list', data: params }),
    overviewComponentDelete: (params) => http({ method: 'post', url: '/behavior/overview-component/delete', data: params }),
}


// 事件分析
const eventAnalysis = {

// 事件分组 分组查询
    eventGroupQuery: (params) => http({ method: 'post', url: '/behavior/meta/event/group/list', data: params }),
// 事件分组 添加分组
    eventGroupAdd: (params) => http({ method: 'post', url: '/behavior/meta/event/group/add', data: params }),
// 事件分组 移动分组
    eventGroupMobile: (params) => http({ method: 'post', url: '/behavior/meta/event/group/mobile', data: params }),
// 事件分组 删除分组
    eventGroupDelete: (params) => http({ method: 'post', url: '/behavior/meta/event/group/delete', data: params }),
// 事件分组 分组改名
    eventGroupUpdatebyname: (params) => http({ method: 'post', url: '/behavior/meta/event/group/update', data: params }),
// 事件分析，保存到概览
    overviewComponentAdd: (params) => http({ method: 'post', url: '/behavior/overview-component/add', data: params }),
// 事件分析，级联组件，第一列可选值更改
    eventAnalysisPropertyList: (params) => http({ method: 'post', url: '/behavior/event-analysis-property/list', data: params }),
// 事件分析，级联组件，第三列可选值更改
    metaPropertyDictionaryList: (params) => http({ method: 'post', url: '/behavior/meta-property/dictionaryList', data: params }),
// 事件分析，报告查询
    computeEventReport: (params) => httpComputed({ method: 'post', url: '/behavior/compute/event/report', data: params }),
}


const analysisApi = {
    dataCard,
    eventAnalysis
}
export default analysisApi;
